Show AllShow All

LanguageID Property

Returns the locale identifier (LCID) for the install language, the user interface language, or the Help language. Read-only Long.

expression.LanguageID(Id)

expression    Required. An expression that returns a LanguageSettings object.

Id   Required MsoAppLanguageID.

Example

This Microsoft Excel example checks the LanguageID property settings for the user interface and execution mode to verify that they are set to the same LCID. The example returns an error if there is a discrepancy.

If Application.LanguageSettings.LanguageID(msoLanguageIDExeMode) _
    <> Application.LanguageSettings.LanguageID(msoLanguageIDUI) _
    Then MsgBox "The user interface language and execution " & _
    "mode are different."